package com.anycl.design.structural.decorator;

/**
 * 实现弹幕播放的类，具体的装饰器的实现类
 * 具体装饰器角色
 */
public class BarrageReadVideoPlay extends BarrageVideoPlay {

    public BarrageReadVideoPlay(MediaPlay mediaPlay) {
        super(mediaPlay);
    }

    @Override
    public String getMediaName() {
        return mediaPlay.getMediaName() + "已开启弹幕";
    }

    @Override
    public int getMediaSeconds() {
        return mediaPlay.getMediaSeconds();
    }

    @Override
    public String getMediaContent() {
        return mediaPlay.getMediaContent() + "(弹幕中)";
    }
}
